//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class SeriesIndexRecord : BiffRecord
    {
        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.SIIndex; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write((ushort)_numIndex);
        }

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            this._numIndex = (SeriesDataType)context.ReadUInt16();

        }

        private SeriesDataType _numIndex;
        public enum SeriesDataType : ushort
        {
            BubbleSizes = 3,
            CategoryLabels = 2,
            SeriesValues = 1
        }


    }
}